class Fruit {
    void disp() {
        System.out.println("我是水果的统称");
    }
}
class Apple extends Fruit {
    void disp() {
        System.out.println("我是香脆可口的苹果");
    }
}
class Banana extends Fruit {
    void disp() {
        System.out.println("我是营养丰富的香蕉");
    }
}
public class ZuoYe4 {
    public static void main(String[] args) {
        Fruit fruit = new Fruit();
        Apple apple = new Apple();
        Banana banana = new Banana();
        fruit.disp();
        apple.disp();
        banana.disp();
        Fruit fruit1 = new Apple();
        fruit1.disp();

    }
}
